#pragma once


class RectStatic;

class MoneyDrawer
{
public:
	enum
	{	
		ORDER_CENTER,
		ORDER_LEFT,
		ORDER_RIGHT,
	};
public:
	MoneyDrawer();
	~MoneyDrawer();

	void	Init(int nDigitCount, int nWidth, int nHeight, int nMargin, int nWonSpace);
	void	Release();
	void	Update();
	void	SetPos(int nPosX, int nPosY, int nOrderType = -1);
	void	SetMoney(int m_nMoney);
	int		GetMoney() { return m_nMoney; }
	void	GenerateImage();

private:
	int		m_nMoney;
	int		m_nPosX;
	int		m_nPosY;
	int		m_nWidth;
	int		m_nHeight;
	int		m_nMargin;
	int		m_nCommaMargin;
	int		m_nWonSpace;
	int		m_OrderType;
	int		m_nDrawCount;

	std::vector<RectStatic* >	m_listRect;
};